//tables = document.getElementsByTagName("table")
debugger;
myframe = document.getElementById("SellerDashBoard")
if (myframe){
    window.open(myframe.src)
    return
}else{
    //alert("没有发现数据分析的相关内容")
}
//myframe.src = "http://mai.taobao.com"
//var frameDocument = (myframe.contentWindow || myframe.contentDocument);
//console.log(typeof frameDocument)

// if (frameDocument.document){
//     alert("Scuc")
//     frameDocument = frameDocument.document;
//     frameDocument.body.style.backgroundColor="#0000ff";
// }else{
//     alert("LLL")
// }

// frameDoc = frame.contentDocument.document
// alert("farmedoc")
// alert(
// data = document.getElementById("J_Indicatrix")
// if (data){
//     alert(data.innerHTML);	
// }

tables = document.getElementsByTagName("table")
for (var i = 0; i < tables.length; i++){
    //tables[i].border="10"
    tables[i].style.border="thick solid #0000FF";
    console.log("Table content")
    for (var j = 0; j < tables[i].rows.length; j++){
        for (var k = 0; k < tables[i].rows[j].cells.length; k++){
            console.log(tables[i].rows[j].cells[k].innerHTML)
        }
    }
    //console.log(tables[i].innerHTML)
}

// alert("ddd")

